/* -----------------
* brief
* 1. this is code gen by tools
* 2. array like [a,b,c] after each field, define the ui html tag in view,
		a for title,
		b for show or not ,
		c for element html tag , currently suppor : check、radio、select、input、textarea、upload tag
* 3. XXX
*/

//使用方法：在工程root目录下，执行go generate ./modules/user/models
//go:generate legogen -type=User -kv=ModuleName=user,PrjName=saas_sys_base -dirconf=../../.. ./User.go

package user

import "github.com/mjiulee/lego"

func init() {
	lego.AddBeanToSynList(new(User))
}

/* table: "tb_sys_user"
 * -----------------
 */
type User struct {
	Id    int64  `xorm:"pk" json:",string"`                  // ["id","hide","hidden"]
	IfDel int `xorm:"default 0"`              // ["deleted","hide","hidden"]
	Cdate string `xorm:"DateTime created"`    // ["create","show","datetime"]
	Udate string `xorm:"DateTime updated"`    // ["update","show","datetime"]
	// add your custom field here

	//此用户是哪个app的用户、是哪个租户的用户
	//MiniAppId        int64  `xorm:""`                  // ["MiniAppId","show","input"]
	//Tid        int64  `xorm:""`                  // ["Tid","show","input"]
	WxUid  int64 `xorm:"" json:",string"` // ["WxUid","show","input"]
	WebUid int64 `xorm:"" json:",string"` // ["WxUid","show","input"]

	//其它的一些属性
	CurrentTid int64 `xorm:"" json:",string"` // ["CurrentTid","show","input"] //只有商家端使用这一字段


}
